import numpy as np

l = [1,2,3,6,4,5]
l = np.sort(l)
print(l)
print(l[2:-2])